function g = prepare_global(type, param)
% calculate invariant values in every loop.
% May speed up feature extraction.
g = struct();
switch lower(type)
    otherwise
        % Do nothing
end
end %prepare_global
